package com.katarina.ad.panels.menu;

public enum Menu {
  ROOT("root", null),

  MASTER_DATA("Master", ROOT),

  COLOR("Color", MASTER_DATA),
  BRAND("Brand", MASTER_DATA),
  CAR_MODEL("Car Model", MASTER_DATA),
  CAR_TYPE("Car Type", MASTER_DATA),
  TRANSMISSION("Transmission", MASTER_DATA),
  CAR("Car", MASTER_DATA)
  ;

  private Menu parentMenu;
  private String title;

  Menu(String title, Menu menu) {
    this.title = title;
    this.parentMenu = menu;
  }

  public Menu getParentMenu() {
    return parentMenu;
  }

  public String getTitle() {
    return title;
  }

  public void setParentMenu(Menu parentMenu) {
    this.parentMenu = parentMenu;
  }

  public void setTitle(String title) {
    this.title = title;
  }

}
